﻿using System;
using Spring.Context;
using Spring.Context.Support;

namespace SpringSeries.Core.SetterInjection
{
    class Program
    {
        static void Main(string[] args)
        {            
            IApplicationContext _ctx = ContextRegistry.GetContext();
            PhraseTranslator _translator = (PhraseTranslator)_ctx.GetObject("Translator");
            Console.WriteLine(_translator.Translate("Hello Spring.NET !!"));
            Console.WriteLine(_translator.Translate("Hola Spring.NET !!"));
            Console.Read();
        }
    }
}
